#include <bits/stdc++.h>
using namespace std;
const int N = 10e5+1;

int main(){
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    vector<int> v;

    cin>>n;
    int ans=n;
    for(int i=0;i<n;i++){
        int k;
        cin>>k;
        v.push_back(k);
    }
    sort(v.begin(),v.end());

    int l=0,r=1;
    while(r<n){
        if(v[r]>v[l]){
            ans--;
            l++;
        }
        r++;
    }

    cout<<ans;
    return 0;
}
